import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../components/Login.vue'
// 在vue对象中声明路由对象 整个脚手架中都可以引用路由
Vue.use(VueRouter)
const routes = [
  {path: '/', redirect: '/login'},
  {path: '/login', component: Login}
]
// 创建路由对象
const router = new VueRouter({
  routes
})

export default router
